package com.myapi.server;

import static org.junit.Assert.*;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

import org.junit.Test;

import com.myapi.client.DAO.TableDAO;


public class testTableDAOSerializable {

	@Test
	public void testIsSerializable() throws IOException {


	    ByteArrayOutputStream out = new ByteArrayOutputStream();
	    ObjectOutputStream oos = new ObjectOutputStream(out);
	    oos.writeObject(new TableDAO());
	    oos.close();
	    assertTrue(out.toByteArray().length > 0);

	    }
}
